package org.hzero.exam.infra.mapper;

import io.choerodon.mybatis.common.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.hzero.exam.domain.entity.HodrSoLine;
import org.springframework.context.annotation.Primary;
import org.springframework.security.core.parameters.P;

import java.util.List;

/**
 * @author 马旭阳
 * @date2019/8/6
 */
@Primary
public interface HodrSoLineMapper extends BaseMapper<HodrSoLine> {
    /**
     * 根据订单编号查询订单行信息
     * @param soheaderId
     * @return java.util.List<org.hzero.exam.domain.entity.HodrSoLine>
     */
    List<HodrSoLine> selectBySoheaderID(@Param("soheaderId") Long soheaderId);
    /**
     * 根据订单头Id和行号查询订单行信息
     * @param soHeaderId
     * @param lineNumber
     * @return org.hzero.exam.domain.entity.HodrSoLine
     */
    HodrSoLine selectBySoHeaderIdAndLineNumber(@Param("soHeaderId") Long soHeaderId,@Param("lineNumber") Long lineNumber);
    /**
     * 添加数据
     * @param soLine
     * @return void
     */
    void insertAll(@Param("soLine") HodrSoLine soLine);
}
